using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region MyStyle

	/// <summary>
	/// MyStyle object for NHibernate mapped table 'MyStyle'.
	/// </summary>
	public class MyStyle
	{
		#region Member Variables
		
		protected int _id;
		protected string _title;
		protected int _price;
		protected string _album;
		protected string _dvdNum;
		protected int _clothId;
		protected int _winId;
		protected int _stylelevel;
		protected int _demId;
		protected int _xtId;
		protected int _gift;
		protected DateTime _addDate;
		protected int _ordernum;
        protected string _description;
		#endregion

		#region Constructors

		public MyStyle() { }

		public MyStyle( string title, int price, string album, string dvdNum, int clothId, int winId, int stylelevel, int demId, int xtId, int gift, DateTime addDate, int ordernum )
		{
			this._title = title;
			this._price = price;
			this._album = album;
			this._dvdNum = dvdNum;
			this._clothId = clothId;
			this._winId = winId;
			this._stylelevel = stylelevel;
			this._demId = demId;
			this._xtId = xtId;
			this._gift = gift;
			this._addDate = addDate;
			this._ordernum = ordernum;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Title
		{
			get { return _title; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Title", value, value.ToString());
				_title = value;
			}
		}

		public  virtual int Price
		{
			get { return _price; }
			set { _price = value; }
		}

		public  virtual string Album
		{
			get { return _album; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Album", value, value.ToString());
				_album = value;
			}
		}

		public  virtual string DvdNum
		{
			get { return _dvdNum; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for DvdNum", value, value.ToString());
				_dvdNum = value;
			}
		}

		public  virtual int ClothId
		{
			get { return _clothId; }
			set { _clothId = value; }
		}

		public  virtual int WinId
		{
			get { return _winId; }
			set { _winId = value; }
		}

		public  virtual int Stylelevel
		{
			get { return _stylelevel; }
			set { _stylelevel = value; }
		}

		public  virtual int DemId
		{
			get { return _demId; }
			set { _demId = value; }
		}

		public  virtual int XtId
		{
			get { return _xtId; }
			set { _xtId = value; }
		}

		public  virtual int Gift
		{
			get { return _gift; }
			set { _gift = value; }
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		public  virtual int Ordernum
		{
			get { return _ordernum; }
			set { _ordernum = value; }
		}

        public virtual string Description
        {
            get { return _description; }
            set { _description = value; }
        }

		#endregion
	}
	#endregion
}